﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Data
{
    public interface ITable<in T>
        where T : new()
    {
        void Update(T o);
        void Insert(T o);
        void Save(T o);
        void InsertMany(IEnumerable<T> list);
        void Delete(object o);
        void DeleteMany(string where = "", params object[] args);
        void DeleteAll();
        void Execute(string sql = "", params object[] args);
    }
}
